package com.osgix.authorize.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.osgix.authorize.model.RoleInfo;
import com.osgix.authorize.dao.RoleInfoDao;
import com.osgix.authorize.service.RoleInfoManager;
import com.osgix.common.orm.Page;
import com.osgix.common.orm.ibatis.EntityDao;
import com.osgix.common.service.BaseManager;
import com.osgix.common.service.AbsBaseManager;
import com.osgix.authorize.service.RoleInfoManager;

import com.osgix.common.orm.ibatis.BaseIbatisDao;
import org.springframework.stereotype.Repository;

@Service("roleInfoManager")
@Transactional
public class RoleInfoManagerImpl extends AbsBaseManager<RoleInfo,Long> implements RoleInfoManager{

	private RoleInfoDao roleInfoDao;
	
	/**增加setXXXX()方法,spring就可以通过autowire自动设置对象属性,请注意大小写*/
	@Resource
	public void setRoleInfoDao(RoleInfoDao dao) {
		this.roleInfoDao = dao;
	}
	
	public EntityDao getEntityDao() {
		return this.roleInfoDao;
	}
	
	public void saveRoleInfo(RoleInfo roleInfo) {
		roleInfoDao.save(roleInfo);
	}
	
	public void updateRoleInfo(RoleInfo roleInfo) {
		roleInfoDao.update(roleInfo);
	}
	
	
}
